<?php
slot ( 'title', sprintf ( '%s is looking for a %s', $job->getCompany (), $job->getPosition () ) );
use_stylesheet ( 'job.css' );
use_helper ( 'Text' );

if ($sf_request->getParameter('token') == $job->getToken()) {
	include_partial('job/admin', array('job' => $job));
}

?>

<div id="job">
<h1><?php
echo $job->getCompany ()?></h1>
<h2><?php
echo $job->getLocation ()?></h2>
<h3>
    <?php
				echo $job->getPosition ()?>
    <small> - <?php
				echo $job->getType ()?></small></h3>
 
 		<?php if ($job->getLogo ()) : ?>
    		<div class="logo"><a href="<?php echo $job->getUrl ()?>"><img src="/uploads/jobs/<?php echo $job->getLogo() ?>" alt="<?php echo $job->getCompany() ?> logo" /></a></div>
		<?php endif; ?>
 
  <div class="description">
    <?php
				echo simple_format_text ( $job->getDescription () )?>
  </div>

<h4>How to apply?</h4>

<p class="how_to_apply"><?php
echo $job->getHowToApply ()?></p>

<div class="meta"><small>posted on <?php echo $job->getCreatedAt ( 'd-m Y' )?><br />Token: <?php echo $job->getToken(); ?></small></div>

<div style="padding: 20px 0"><a
	href="<?php echo url_for('job_edit', $job) ?>">Edit</a></div>
</div>
